$(function(){
    
    $("#form_contato").validate({
            //submitHandler: function(form) {
            //   $("#form_contato").submit();
            //},
            onfocusout: function (element) {
                $(element).valid();
            },
            rules: {
                    nome: "required",
                    email: { required: true, email: true},
                    telefone: {required: true, minlength: 8},
                    //cidade: "required",
                    uf: {required: true, minlength: 2},
                    assunto: "required",
                    mensagem: "required",
            },

    });
});

jQuery(function($){
    $('#telefone').mask('(99) 9999-9999');    
});